package Var1019.Test8;

import java.util.Scanner;

public class FirmTest {
    public static void main(String[] args) {
        Firm firm=new Firm();
        firm.name="马大哈";
        firm.address="北京";
        firm.phone="13564892321";
        firm.range="一个大西洋";
        Scanner sc = new Scanner(System.in);
        int choice;
        while (true){
            System.out.println("1:招聘，2：显示,9：结束程序");
            choice=sc.nextInt();
            if (choice==1){
                System.out.println("请输入招聘的姓名");
                String name=sc.next();
                firm.add(name);
            }else if (choice==2){
                firm.show();
            }else if (choice==9){
                break;
            }
        }
        System.out.println("结束");
    }
}

